{{ $pages := where .Site.RegularPages "Section" .Section }}

<div class="pagination">
	<div class="pagination__left">
		{{ with $pages.ByWeight.Next . }}
		<a class="pagination__left__link" title="Previous page" href="{{ .Permalink }}">
			{{ .Title }}
		</a>
		{{ end }}
	</div>

	<div class="pagination__right">
		{{ with $pages.ByWeight.Prev . }}
		<a class="pagination__right__link" title="Next page" href="{{ .Permalink }}">
			{{ .Title }}
		</a>
		{{ end }}
	</div>
</div>